/*
 * @Descripttion:
 * @Author: Wang Dejiang(aei)
 * @Date: 2022-04-12 19:02:47
 * @LastEditors: Wang Dejiang(aei)
 * @LastEditTime: 2022-04-24 16:51:17
 * @description: router+pinia+element-plus 其中element-plus使用插件只能按需引入
 */
import { createApp } from 'vue'
import App from './App.vue'
import { router } from './router'
import { createPinia } from 'pinia'
import('./assets/style/style.css')
const pinia = createPinia()
const app = createApp(App)

//@ts-ignore
import VMdPreview from '@kangc/v-md-editor/lib/preview'
import '@kangc/v-md-editor/lib/style/preview.css'
//@ts-ignore
import githubTheme from '@kangc/v-md-editor/lib/theme/vuepress.js'
import '@kangc/v-md-editor/lib/theme/style/vuepress.css'
//@ts-ignore
import Prism from 'prismjs'
VMdPreview.use(githubTheme, {
  Prism,
})
app.use(VMdPreview)

app.use(pinia)
app.use(router)

app.mount('#app')
